Miles Sound System SDK 7.2a

Q:

How do I play an XMIDI or MIDI file?

A:

To play an XMIDI file, follow these steps:

1) Allocate an HSEQUENCE with AIL_allocate_sequence_handle.

2) Load the file from the disk with AIL_file_read (or your own file IO routines).

3) Call AIL_init_sequence to point the HSEQUENCE at the loaded disk file image.

4) Play the file with AIL_start_sequence.


To play a standard MIDI file, call the AIL_MIDI_to_XMI function to convert the MIDI file into an XMIDI file image and then follow the XMIDI steps.

Next Topic (How do I play an XMIDI file with a DLS instrument set?)

Previous Topic (What's the best way to port my older Miles application to MSS 7?)


Group: FAQs and How Tos
Related Functions: AIL_MIDI_to_XMI, AIL_allocate_sequence_handle, AIL_file_read, AIL_init_sequence, AIL_start_sequence
Related FAQs: How do I play an XMIDI file with a DLS instrument set?

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.